package com.ruoqing.admin.api;

import com.ruoqing.core.domain.rqadmin.BanUserPo;
import com.ruoqing.core.dto.BaseResponse;
import com.ruoqing.core.dto.admin.BanUserResponse;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

/**
	* @author YaoXian
	* @title: UserStandardService
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 后台管理中心 - 用户行为规范业务层接口
	* @date 2020-11-16 17:34
	*/
@RequestMapping(path = "/userStandard")
@Api(tags = "后台管理中心HTTP+RPC调用 - 用户行为规范接口")
public interface UserStandardService {
		
		/**
			* 添加用户到用户黑名单
			* @param phoneNumber
			* @param whetherDelete
			* @return BaseResponse
			*/
		@PutMapping(path = "/addBlackUser")
		BaseResponse addBlackUser(@RequestParam("phoneNumber") String phoneNumber,@RequestParam("whetherDelete")Boolean whetherDelete);
		
		/**
			* 根据电话号码查询黑名单
			* @param phoneNumber
			* @return BanUserPo
			*/
		@GetMapping(path = "/findOffendUser")
		BanUserPo findOffendUser(@RequestParam("phoneNumber") String phoneNumber);
		
		/**
			* 根据ID移除黑名单中的手机号
			* @param blackId
			* @return
			*/
		@DeleteMapping(path = "/removeBlackUser")
		BaseResponse removeBlackUser(@RequestParam("blackId") Integer blackId);
		
		/**
			* 根据参数模糊查询黑名单用户
			* @param queryParam
			* @return BanUserResponse
			*/
		@GetMapping(path = "/blurQueryBanUser")
		BanUserResponse blurQueryBanUser(@RequestParam("queryParam") String queryParam);
		
}
